package com.thlws.consul.service.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @author HanleyTang 2019-06-18
 */
@RestController
@RequestMapping("/demo")
public class DemoController {


    @RequestMapping("/print")
    public Object hello(){
//        try {
//            TimeUnit.SECONDS.sleep(1500);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }

        return "print time:"+ LocalDateTime.now().toString();
    }

}
